package com.fushenlan.epidemicControl.dto.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author zhulei
 * @DATE 2022/4/25
 * @PACKAGE_NAME com.fushenlan.po.dto
 * @VERSION 1.0
 * 核酸申请记录响应实体
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class NucleinDetectionApplyRecordReqDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 通知名称
     */
    @NotBlank
    @ApiModelProperty(value = "通知名称",required = true)
    private String notificationName;

    /**
     * 检测时间
     */
    @ApiModelProperty(value = "检测时间",required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date detectionTime;

    /**
     * 通知内容
     */
    @NotBlank
    @ApiModelProperty(value = "通知内容",required = true)
    private String noticeContent;

    /**
     * 1-全部小区 2-指定小区 3-指定检测人员 4-阳性及密接人员
     */
    @ApiModelProperty(value = "1-全部小区 2-指定小区 3-指定检测人员 4-阳性及密接人员",required = true)
    private Integer detectionType;

    /**
     * 检测人数   人员范围3-4的时候有值
     */
    @ApiModelProperty(value = "检测人数   人员范围3-4的时候有值")
    private Integer detectionNumber;

    private String createUser;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private String updateUser;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    /**
     * 小区ids or 指定检测人员ids
     */
    @ApiModelProperty(value = "小区ids or 指定检测人员ids")
    private List<String> ids;

    /**
     * 当前居委id
     */
    @ApiModelProperty(value = "当前居委id")
    private Long  neighborhoodId;


}
